|
|
|
|
LinearGradientMode Property, SftTree Class |
Defines the linear gradient mode used to render the available background area in cells in the item area.
Syntax SftTree Class (Softelvdm.SftTreeNET)
VB |
Public Property LinearGradientMode As LinearGradientMode |
C# |
public LinearGradientMode LinearGradientMode { get; set; } |
C++ |
public: property LinearGradientMode LinearGradientMode { |
Property Value
The linear gradient mode.
LinearGradientMode |
Value |
Description |
Horizontal | 0 | Specifies a gradient from left to right. |
Vertical | 1 | Specifies a gradient from top to bottom. |
ForwardDiagonal | 2 | Specifies a gradient from upper left to lower right. |
BackwardDiagonal | 3 | Specifies a gradient from upper right to lower left. |
The default value is LinearGradientMode.Horizontal.
Comments
The LinearGradientMode property defines the linear gradient mode used to render the available background area in cells in the item area.
If the background colors are defined with starting and ending values (usually CellBaseClass.BackColor and CellBaseClass.BackColorEnd), the available area is rendered using a gradient fill.
The defined linear gradient mode is only used if a cell's appearance is defined as BackgroundAppearanceEnum.Clean. BackgroundAppearanceEnum.ButtonPlain or BackgroundAppearanceEnum.HeaderEmptyArea (CellBaseClass.Appearance).